package org.blade.personal.framework.session.concre;

import org.blade.personal.framework.dsl.sql.Sql;
import org.blade.personal.framework.orm.EntityAlias;
import org.blade.personal.framework.session.DslSession;
import org.blade.personal.framework.session.Executer;

/**
 * DslSession封装与实现
 * 
 * @author ZGF
 * @version 0.1
 *
 */
public class DslSessionWarper implements DslSession {

	private DslSession dslSession;

	/**
	 * 
	 * @param dslSession
	 */
	public DslSessionWarper(DslSession dslSession) {
		this.dslSession = dslSession;
	}

	@Override
	public Executer create(Sql sql) {
		return dslSession.create(sql);
	}

	@Override
	public int executeUpdate(Sql sql) {
		return dslSession.executeUpdate(sql);
	}

	@Override
	public int add(EntityAlias entity) {
		return dslSession.add(entity);
	}

	@Override
	public int delete(EntityAlias entity) {
		return dslSession.delete(entity);
	}

	@Override
	public int update(EntityAlias entity) {
		return dslSession.update(entity);
	}

}
